import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';

import { BaseModule } from './base/base.module';
import { CustomModule } from './custom/custom.module';
import { DirectiveModule } from './directive/directive.module';
import { LIB_MODULES } from './lib.module';
import { NG_ZORRO_ANTD_MODULES } from './ng-zorro-antd.module';
import { PipeModule } from './pipe/pipe.module';

const MODULES = [CustomModule, BaseModule, PipeModule, DirectiveModule, ...NG_ZORRO_ANTD_MODULES, ...LIB_MODULES];

@NgModule({
  imports: [...MODULES],
  exports: [CommonModule, FormsModule, RouterModule, ReactiveFormsModule, ...MODULES]
})
export class ShareModule {}
